<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/Site.Master" Inherits="System.Web.Mvc.ViewPage<jqMvcGrid.Models.Category>" %>

<asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server">
    Edit
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
    <% using (Html.BeginForm())
       {%>
    <fieldset>
        <legend>Edit
            <%= Model.CategoryName %></legend>
        <p>
            <%= Html.Hidden("CategoryID", Model.CategoryID) %>
            <%= Html.ValidationMessage("CategoryName") %>
        </p>
        <p>
            <label for="CategoryName">
                CategoryName:</label>
            <%= Html.TextBox("CategoryName", Model.CategoryName) %>
            <%= Html.ValidationMessage("CategoryName", "*") %>
        </p>
        <p>
            <label for="Description">
                Description:</label>
            <%= Html.TextArea("Description", Model.Description, new { @rows="6", @cols = "32" })%>
            <%= Html.ValidationMessage("Description", "*") %>
        </p>
        <p>
            <input type="submit" value="Save" />
        </p>
    </fieldset>
    <% } %>
    <div>
        <%=Html.ActionLink("Back to List", "Index") %>
    </div>
</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="ScriptContent" runat="server">
</asp:Content>
